home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / May 90 / MacApp.Tech$ 5⁄18⁄90 / 1310-Re VM versus the Han-May90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.1 KB  |  28 lines  |  [TEXT/GEOL]

  1. Item    0810103                         18-May-90        17:50PDT
  2.  
  3. From:   D4682                           Marx, Peter,PRT
  4.  
  5. To:     D6020                           Info Research, John MacVeigh,PRT
  6.         MACAPP.TECH$                    MacApp Technical
  7.  
  8. Sub:    Re: VM versus the Handles
  9.  
  10. John -
  11.  
  12. I agree - there isn't much point in marking handles/resources as purgeable if
  13. they're in a page swap file. However, the VM/Memory Mgr may be intelligent
  14. enough to keep track of purgeable handles. I doubt it, though. Remember that
  15. the page swap files tend to have just that - pages, not handles. In other
  16. words, Handles may be broken into disk-based and real memory-based pieces.
  17.  
  18. As I haven't the time to wait for good VM to come (or for it to work), I have
  19. simply implemented my own handle-swapping code that reconstructs purgeable
  20. handles (in this case, images or pieces of images.) It's in C++ and in Think C
  21. 4.0 and it works pretty well. When faced with VM, though, it suffers.
  22.  
  23. For these reasons, it is possible to make memory non-swappable. See Inside
  24. Macintosh VI for more information.
  25.  
  26. Peter Marx
  27.  
  28.